<?php
class UserBaseController extends BaseController {
	public function __construct(){
		if(isset($_REQUEST['jsession_id'])&&$_REQUEST['jsession_id']>0){
			$user = HttpDaoManager::getUserDao()->get($jsession_id);
			$_SESSION['user'] = $user;
		}	

		if (empty($_SESSION['user'])){//第一denglu
			ClassManager::getToos()->msgbox('请登录会员中心','index.html');
		}else{
			$userInfo = HttpDaoManager::getUserDao()->get($_SESSION['user']['id']);
			if(!empty($userInfo)&&!empty($userInfo['openid'])){
				if(empty($userInfo['email'])||empty($userInfo['password'])||$userInfo['qq_bind_status']==QQ_BIND_UNCONFIRM){
					header('location:binder_qqReg.html');
				}
			}
		}
	}
}
?>